//
//  HYQTestViewController.m
//  HYQWebkit_Example
//
//  Created by zhuxingjian on 2018/8/22.
//  Copyright © 2018年 zxj1989. All rights reserved.
//

#import "HYQTestViewController.h"
#import "HYQWebViewController.h"

@interface HYQTestViewController ()

@end

@implementation HYQTestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor greenColor];
    self.title = @"原生页面";
    
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn addTarget:self action:@selector(btnAction:) forControlEvents:UIControlEventTouchUpInside];
    btn.frame = CGRectMake(100, 150, 100, 50);
    btn.backgroundColor = [UIColor redColor];
    [btn setTitle:@"打开test4" forState:UIControlStateNormal];
    [self.view addSubview:btn];
    
}

- (void)btnAction:(UIButton *)btn
{
    HYQWebViewController *webVC = [HYQWebViewController new];
    webVC.url = @"http://192.168.100.60:9000/taobaoDemo/test4.html";
    webVC.title = @"test4";
    [self.navigationController pushViewController:webVC animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
